<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>新闻管理系统</title>
	<style type="text/css">
		table{
			font-family:微软雅黑;

		}
		h3{
			font-family:微软雅黑;
		}

		.pagination li{
			list-style:none;
			float:left;
			margin-right:5px;
		}
		#page{
			width:260px;
			height:30px;
			
			margin:10px auto;
		}



	</style>
</head>
<body>
	<center>
		@include('news/menu')
		<h3>浏览新闻</h3>

		<table border='1' width='880'>
			<tr>
				<th>新闻ID</th><th>新闻标题</th><th>新闻关键字</th><th>作者</th><th>发布时间</th><th>图片</th><th>新闻内容</th><th>操作</th>
			</tr>
		@foreach($row as $k=>$v)
			<tr>
				<td>{{$v->id}}</td>
				<td>{{$v->title}}</td>
				<td>{{$v->keywords}}</td>
				<td>{{$v->author}}</td>
				<td>{{ date('Y-m-d H:i:s',$v->addtime)}}</td>
				<td><img src="{{$v->logo}}" alt="" width='50' height='50'></td>
				<td>{{$v->content}}</td>
				<td><a href="/news/edit?id={{$v->id}}">修改</a>  <a href="/news/delete?id={{$v->id}}">删除</a></td>
			</tr>
		@endforeach
			
		</table>

		<div id='page'>
		{!! $row->render() !!}
			

		</div>

		
	</center>	
</body>
</html>